import requestProxy from '@/utils/request';

const { request } = requestProxy;

// 获取上传七牛token
export function getUpToken() {
  return request({
    url: 'common/upToken',
    method: 'get'
  });
}

// 获取上传七牛token
export function getQiniuToken() {
  return request({
    url: 'admin/qiniu/token',
    method: 'get'
  });
}
export function requestImg(data) {
  return request({
    url: 'admin/extensions/img',
    method: 'post',
    data
  });
}
